package com.easyjava.utils;

/**
 * @program: workspace-easyjava
 * @description:
 * @author: cw
 * @create: 2024-05-08 15:46
 **/
public class StringUtils {

    public static String upperCaseFirst(String str) {
        if (str == null || str.length() == 0) {
            return str;
        }
        return str.substring(0, 1).toUpperCase() + str.substring(1);
    }

    public static String lowerCaseFirst(String str) {
        if (str == null || str.length() == 0) {
            return str;
        }
        return str.substring(0, 1).toLowerCase() + str.substring(1);
    }

    public static void main(String[] args) {
        System.out.println(upperCaseFirst("abc"));
    }
}
